home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amoszine 11
/
Amoszine 11 (Disk 2 of 2).adf
/
Various_Source.lha
/
BloodDrip.amos
/
BloodDrip.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1996-03-05
|
1KB
|
68 lines
' Blood drip 2
'
' This drools blood down from the area:
'
' By Richard Martin
'
' This code may have been seen before. I got it by using QBTools on an Issue
' of WAC!!! :) Isn't it great finding deleted files on peeps disks!
'
' Let that be a warning to all you careless peeps out there.
' AG
'
Screen Open 0,320,200,4,Lowres
Palette $0,$FFF,$F00,$C00
BLOOD[20]
'
Procedure BLOOD[SIZE]
Flash Off
Cls 0
Ink 2
Circle 50,50,3
Paint 51,51
' Grab blood splat.
Get Bob 1,44,44 To 56,56
Cls 0
'
' Draw great blood blob!
'
CENTERX=Rnd(120)+50
CENTERY=Rnd(50)+50
For I=1 To SIZE
RAND1=Rnd(15)
RAND2=Rnd(10)
RAND3=Rnd(100)
If RAND3>50
RAND1=RAND1-(RAND1*2)
RAND2=RAND2-(RAND2*2)
End If
Paste Bob CENTERX+RAND1,CENTERY-RAND2,1
Next I
'
'
Repeat
'
RAND1=Rnd(15)
RAND2=Rnd(10)
RAND3=Rnd(100)
'
If RAND3>50
RAND1=RAND1-(RAND1*2)
RAND2=RAND2-(RAND2*2)
End If
X=CENTERX+RAND1
Y=CENTERY+RAND2
If Point(X,Y)=2
DIST=Rnd(100)+100
DRIP[DIST,X,Y]
End If
Until Mouse Key=1
End Proc
'
Procedure DRIP[DIST,X,Y]
Ink 3
For NY=Y To DIST
Draw X,Y To X,NY
Wait Vbl
Next NY
End Proc